package com.cms.controller;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import com.cms.service.ReportService;

@Controller
public class AdminLoginLogController extends BaseController{

	@Autowired
	private ReportService reportService;
	
	@RequestMapping("/adminLoginLog.do")
	public String enter(HttpServletRequest req,HttpServletResponse resp,ModelMap map)throws Exception
	{
	    return "admin/login/adminLoginLogMain.html";	
	}
	
	
	@RequestMapping("/adminLoginLog/loginLogList.do")
	public String loginLogList(HttpServletRequest req,HttpServletResponse resp,ModelMap map)throws Exception
	{
		Map<String,Object>param = this.buildQueryMap(req);
		map.put("loginlogList", this.reportService.pagingReportResult("pagingLoginlogList", param));
	    return "admin/login/adminLoginLogList.html";	
	}
}
